package com.share.design.visit;

/**
 * 具体访问者
 * author:caifan
 * date:2020/2/5
 */
public class ConcreteVisitorC implements Visitor {
    @Override
    public void visit(ConcreteElementA element) {
        System.out.println("具体访问者C：" + element.operationA());
    }

    @Override
    public void visit(ConcreteElementB element) {
        System.out.println("具体访问者C：" + element.operationB());
    }
}
